package org.zoomdev.zoom.aop;

/**
 * 抽象getter，对于public字段，直接调用
 * 否则，调用getter方法
 * 对static有效
 * <p>
 * GetterFactory fac = new GetterFactory();
 * Getter getter = fac.create(A.class,field)
 * <p>
 * A a = new A
 * getter.get(a)
 * <p>
 * 如果field为static
 * getter.get(A.class);
 */
public interface Getter {
    Object get(Object target);
}
